﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cfg1012m.aspx.cs" Inherits="Updms.Cfg.Cfg1012m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Cfg1012m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->	
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->	
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Cfg1012m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClientClick="return chkExec();" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_exec" Text="실행" runat="server" CssClass="ibtn ibtn_exec" OnClientClick="return chkExec();" OnClick="ibtn_exec_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
			<tr>
				<td class="lbl_c" width="40%"><asp:Literal id="ltr_table_info" Text="테이블정보" runat="server" /></td>
				<td class="lbl_c" width="60%"><asp:Literal id="ltr_query" Text="쿼리" runat="server" /></td>
			</tr>
			<tr>
				<td class="ctl" style="padding:2px 0 2px 2px;" valign="top"><asp:DropDownList id="ddl_table" CssClass="ddl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_table_SelectedIndexChanged"></asp:DropDownList><br/><br/>
					<asp:GridView ID="GridView2" CssClass="table_gridview" GridLines="None" Width="99.4%" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView2_RowDataBound" ShowFooter="True" DataKeyNames="SCALE">
						<Columns>
							<asp:BoundField HeaderText="N" HtmlEncode="False">
								<ItemStyle Width="6%" HorizontalAlign="Center" Height="22" />
							</asp:BoundField>
                            <asp:BoundField DataField="COLUMN_NAME" HeaderText="컬럼명" HtmlEncode="False" >
								<ItemStyle Width="24%" HorizontalAlign="Left" CssClass="ctl" />
							</asp:BoundField>
                            <asp:BoundField DataField="REMARKS" HeaderText="비고" HtmlEncode="False" >
								<ItemStyle Width="32%" HorizontalAlign="Left" CssClass="ctl" />
							</asp:BoundField>
							<asp:BoundField DataField="TYPE_NAME" HeaderText="타입" HtmlEncode="False" >
								<ItemStyle Width="16%" HorizontalAlign="Left" CssClass="ctl" />
							</asp:BoundField>
							<asp:BoundField DataField="PRECISION" HeaderText="길이" HtmlEncode="False" >
								<ItemStyle Width="11%" HorizontalAlign="Left" CssClass="ctl" />
							</asp:BoundField>
                            <asp:BoundField DataField="SCALE" HeaderText="SCALE(X)" Visible="False" HtmlEncode="False" />
							<asp:BoundField DataField="IS_NULLABLE" HeaderText="널허용" HtmlEncode="False" >
								<ItemStyle Width="11%" HorizontalAlign="Center" />
							</asp:BoundField>
						</Columns>
						<EmptyDataTemplate>
							<div id="no_data"></div>
						</EmptyDataTemplate>
					</asp:GridView>
				</td>
				<td class="ctl" style="padding:2px;" valign="top"><asp:textbox id="txt_query" runat="server" CssClass="req che tb_scroll" Width="98.6%" TextMode="MultiLine" Rows="12" Height="480px"></asp:textbox></td>
			</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<table id="table_list_set" cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td>
					<!-- 리스트 시작 -->
					<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" OnRowDataBound="GridView1_RowDataBound" EnableViewState="False">
						<Columns>
							<asp:BoundField HeaderText="No" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Center" Width="4%" />
							</asp:BoundField>
						</Columns>
						<EmptyDataTemplate>
							<div id="no_data"></div>
						</EmptyDataTemplate>
					</asp:GridView>
					<!-- 리스트 끝 -->
				</td>
			</tr>
			<tr>
				<td>
					<!-- 페이징 시작 -->
					<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
					<!-- 페이징 끝 -->
				</td>
			</tr>
			</table>			
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>	
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//실행
	function chkExec() {
		if ($F("txt_query").blank()) {
			msgBox.alert(getMsg(MSG_ERR_069), setFocus, "txt_query"); //쿼리를 입력해 주세요
			return false;
		}
	}
</script>
</body>
</html>